package com.fin.quant.web.utils;

import java.io.*;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public class MyIOUtils {

    public static void write(String content, File file) throws IOException {
        try (FileOutputStream fos = new FileOutputStream(file);
             BufferedOutputStream buffer = new BufferedOutputStream(fos)) {
            buffer.write(content.getBytes(StandardCharsets.UTF_8));
            buffer.flush();
        }
    }
}
